package net.wanho.systemSettings.dao;

import net.wanho.commons.dao.BaseDAO;
import net.wanho.commons.exception.DAOException;
import net.wanho.systemSettings.po.Menu;
import net.wanho.systemSettings.po.Position;

public interface PositionDAO extends BaseDAO<Position> {
    long count(String positionName) throws DAOException ;

    long countPositionIdRef(String positionId) throws DAOException ;

    /**
     * 删除  position_menu_relations 根据职位id删除 多行
     * @param positionId
     * @return
     * @throws DAOException
     */
    boolean deletePositionIdRef(String positionId) throws DAOException ;

    /**
     * 批量插入  position_menu_relations  插入多行
     * @param position  职位id  关联的菜单id
     * @return
     * @throws DAOException
     */
    boolean insertPositionIdRef(Position position) throws DAOException ;
}
